package com.pricl.biz.upload.manager;

import java.util.Set;

import org.springframework.stereotype.Component;

import com.pricl.frame.core.constants.FileManagerConstants;

/**
 * <ol>
 * <li>压缩包上传管理类</li>
 * <ol>
 * 
 * @author jackzhong
 * @since 2014年10月31日下午9:19:35
 */
@Component("zipUploadFileManager")
public class ZipUploadFileManager extends AbstractUploadFileManager {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.CDT.modules.supper.manager.upload.UploadFileManager#
	 * getAllowFileExtensions()
	 */
	@Override
	public Set<String> getAllowFileExtensions() {
		// TODO Auto-generated method stub
		
		return getAllowFileExtensions(FileManagerConstants.UPLOAD_ZIP_ALLOW_FORMAT);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.CDT.modules.supper.manager.upload.UploadFileManager#getAllowFileSize
	 * ()
	 */
	@Override
	public long getAllowFileSize() {
		return getAllowFileSize(FileManagerConstants.UPLOAD_ZIP_ALLOW_SIZE);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.CDT.modules.supper.manager.upload.UploadFileManager#
	 * getFileUploadRelativePath()
	 */
	@Override
	public String getFileUploadRelativePath() {
		return getZipUploadRelativePath();
	}

}
